<template>
  <el-row class="top-bar" type="flex" justify="space-between">
    <el-col>
      <el-button type="primary" @click="showDialog">
        <slot name="left">
          添加角色
        </slot>
      </el-button>
    </el-col>
  </el-row>
</template>

<script>
export default {
  methods: {
    showDialog() {
      this.$emit('showaddRoles')
    }
  }
}
</script>

<style lang="scss" scoped>
.top-bar{
  margin-bottom:20px;
}
</style>
